package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SpecialskillMapper;
import com.ruoyi.system.domain.Specialskill;
import com.ruoyi.system.service.ISpecialskillService;

/**
 * 特殊工种Service业务层处理
 * 
 * @author WEI&WU
 * @date 2024-05-25
 */
@Service
public class SpecialskillServiceImpl implements ISpecialskillService 
{
    @Autowired
    private SpecialskillMapper specialskillMapper;

    /**
     * 查询特殊工种
     * 
     * @param certificateId 特殊工种主键
     * @return 特殊工种
     */
    @Override
    public Specialskill selectSpecialskillByCertificateId(String certificateId)
    {
        return specialskillMapper.selectSpecialskillByCertificateId(certificateId);
    }

    /**
     * 查询特殊工种列表
     * 
     * @param specialskill 特殊工种
     * @return 特殊工种
     */
    @Override
    public List<Specialskill> selectSpecialskillList(Specialskill specialskill)
    {
        return specialskillMapper.selectSpecialskillList(specialskill);
    }

    /**
     * 新增特殊工种
     * 
     * @param specialskill 特殊工种
     * @return 结果
     */
    @Override
    public int insertSpecialskill(Specialskill specialskill)
    {
        return specialskillMapper.insertSpecialskill(specialskill);
    }

    /**
     * 修改特殊工种
     * 
     * @param specialskill 特殊工种
     * @return 结果
     */
    @Override
    public int updateSpecialskill(Specialskill specialskill)
    {
        return specialskillMapper.updateSpecialskill(specialskill);
    }

    /**
     * 批量删除特殊工种
     * 
     * @param certificateIds 需要删除的特殊工种主键
     * @return 结果
     */
    @Override
    public int deleteSpecialskillByCertificateIds(String[] certificateIds)
    {
        return specialskillMapper.deleteSpecialskillByCertificateIds(certificateIds);
    }

    /**
     * 删除特殊工种信息
     * 
     * @param certificateId 特殊工种主键
     * @return 结果
     */
    @Override
    public int deleteSpecialskillByCertificateId(String certificateId)
    {
        return specialskillMapper.deleteSpecialskillByCertificateId(certificateId);
    }
}
